package com.killers.cold.service;

import com.killers.cold.client.SchedualServiceHi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/a")
public class ServiceApi {
    @Autowired
    SchedualServiceHi schedualServiceHi;
    @ResponseBody
    @GetMapping("/sayHello")
    public String sayHello(){
        System.out.println(1);
        return schedualServiceHi.sayHiFromClientOne();
      //  return "I'm ServiceA";
    }
}
